<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.2-20121118"/>
<title>SensorFramework: saxion.sensorframework.db.conn.SqlConnect Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SensorFramework
   &#160;<span id="projectnumber">1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2-20121118 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="a00031.html">saxion</a></li><li class="navelem"><a class="el" href="a00032.html">sensorframework</a></li><li class="navelem"><a class="el" href="a00033.html">db</a></li><li class="navelem"><a class="el" href="a00034.html">conn</a></li><li class="navelem"><a class="el" href="a00012.html">SqlConnect</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pac-static-attribs">Static Package Attributes</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="a00052.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">saxion.sensorframework.db.conn.SqlConnect Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>SQL Class used to connect to the database and to execute queries.  
 <a href="a00012.html#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for saxion.sensorframework.db.conn.SqlConnect:</div>
<div class="dyncontent">
<div class="center"><img src="a00053.png" border="0" usemap="#saxion_8sensorframework_8db_8conn_8_sql_connect_coll__map" alt="Collaboration graph"/></div>
<map name="saxion_8sensorframework_8db_8conn_8_sql_connect_coll__map" id="saxion_8sensorframework_8db_8conn_8_sql_connect_coll__map">
<area shape="rect" title=" +db" alt="" coords="221,227,229,235"/><area shape="rect" title=" +db" alt="" coords="221,336,229,344"/><area shape="rect" title=" ~logger" alt="" coords="111,81,119,89"/><area shape="rect" title=" ~logger" alt="" coords="111,145,119,153"/></map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a85df8794cccd55e7fff6149cccafe091"><td class="memItemLeft" align="right" valign="top">ResultSet&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#a85df8794cccd55e7fff6149cccafe091">query</a> (String query)  throws SQLException </td></tr>
<tr class="memdesc:a85df8794cccd55e7fff6149cccafe091"><td class="mdescLeft">&#160;</td><td class="mdescRight">Execute a query wich will be executed in the database.  <a href="#a85df8794cccd55e7fff6149cccafe091"></a><br/></td></tr>
<tr class="separator:a85df8794cccd55e7fff6149cccafe091"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a616ea38aefd850d4a7c7f2d75fa81fc4"><td class="memItemLeft" align="right" valign="top">ResultSet&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#a616ea38aefd850d4a7c7f2d75fa81fc4">insert</a> (String insertQuery)  throws SQLException </td></tr>
<tr class="memdesc:a616ea38aefd850d4a7c7f2d75fa81fc4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used to insert data into the database.  <a href="#a616ea38aefd850d4a7c7f2d75fa81fc4"></a><br/></td></tr>
<tr class="separator:a616ea38aefd850d4a7c7f2d75fa81fc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a8a736343d2dd35ec71ea1832b8e76b81"><td class="memItemLeft" align="right" valign="top">static synchronized <a class="el" href="a00012.html">SqlConnect</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#a8a736343d2dd35ec71ea1832b8e76b81">getDbCon</a> ()  throws InstantiationException, IllegalAccessException, 			ClassNotFoundException, SQLException </td></tr>
<tr class="memdesc:a8a736343d2dd35ec71ea1832b8e76b81"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a <a class="el" href="a00012.html" title="SQL Class used to connect to the database and to execute queries.">SqlConnect</a> used the get the singleton.  <a href="#a8a736343d2dd35ec71ea1832b8e76b81"></a><br/></td></tr>
<tr class="separator:a8a736343d2dd35ec71ea1832b8e76b81"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a14905a855dd0404405bccfa453a27fd2"><td class="memItemLeft" align="right" valign="top">Connection&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#a14905a855dd0404405bccfa453a27fd2">conn</a></td></tr>
<tr class="memdesc:a14905a855dd0404405bccfa453a27fd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt; Location of project properties file  <a href="#a14905a855dd0404405bccfa453a27fd2"></a><br/></td></tr>
<tr class="separator:a14905a855dd0404405bccfa453a27fd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:ada1f04b176cbc918263439d50e55295a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00012.html">SqlConnect</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#ada1f04b176cbc918263439d50e55295a">db</a></td></tr>
<tr class="memdesc:ada1f04b176cbc918263439d50e55295a"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt; Prepared statement that will be used to execute on the database  <a href="#ada1f04b176cbc918263439d50e55295a"></a><br/></td></tr>
<tr class="separator:ada1f04b176cbc918263439d50e55295a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pac-static-attribs"></a>
Static Package Attributes</h2></td></tr>
<tr class="memitem:a1b54b28524696aa33252c2d3981c3815"><td class="memItemLeft" align="right" valign="top">static Logger&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#a1b54b28524696aa33252c2d3981c3815">logger</a> = Logger.getLogger(SqlConnect.class.getName())</td></tr>
<tr class="separator:a1b54b28524696aa33252c2d3981c3815"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af438e4318b3b86a14500f1a235da6116"><td class="memItemLeft" align="right" valign="top">static final String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#af438e4318b3b86a14500f1a235da6116">CONFIG_FILE</a> = &quot;config.properties&quot;</td></tr>
<tr class="memdesc:af438e4318b3b86a14500f1a235da6116"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt; log4j used for logging.  <a href="#af438e4318b3b86a14500f1a235da6116"></a><br/></td></tr>
<tr class="separator:af438e4318b3b86a14500f1a235da6116"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a794ac61e7345eb264f667b269be0faf0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#a794ac61e7345eb264f667b269be0faf0">SqlConnect</a> ()  throws SQLException, InstantiationException, 			IllegalAccessException, ClassNotFoundException </td></tr>
<tr class="memdesc:a794ac61e7345eb264f667b269be0faf0"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt; Password wich is used on the database  <a href="#a794ac61e7345eb264f667b269be0faf0"></a><br/></td></tr>
<tr class="separator:a794ac61e7345eb264f667b269be0faf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee72809b506fbf549bf30c8093b2731d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#aee72809b506fbf549bf30c8093b2731d">readConfigFile</a> ()</td></tr>
<tr class="memdesc:aee72809b506fbf549bf30c8093b2731d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the config.properties wich contains the information for the database.  <a href="#aee72809b506fbf549bf30c8093b2731d"></a><br/></td></tr>
<tr class="separator:aee72809b506fbf549bf30c8093b2731d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a22891c0396ec494ad8184bfa66dc0c5a"><td class="memItemLeft" align="right" valign="top">PreparedStatement&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#a22891c0396ec494ad8184bfa66dc0c5a">statement</a></td></tr>
<tr class="memdesc:a22891c0396ec494ad8184bfa66dc0c5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt; The connection to the database  <a href="#a22891c0396ec494ad8184bfa66dc0c5a"></a><br/></td></tr>
<tr class="separator:a22891c0396ec494ad8184bfa66dc0c5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45f4ebd14354ea2e599f17cfd307046f"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#a45f4ebd14354ea2e599f17cfd307046f">url</a></td></tr>
<tr class="memdesc:a45f4ebd14354ea2e599f17cfd307046f"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt; An instance of the class <a class="el" href="a00012.html" title="SQL Class used to connect to the database and to execute queries.">SqlConnect</a>  <a href="#a45f4ebd14354ea2e599f17cfd307046f"></a><br/></td></tr>
<tr class="separator:a45f4ebd14354ea2e599f17cfd307046f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01274e0961ae50c2a4f4498882e3d7eb"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#a01274e0961ae50c2a4f4498882e3d7eb">dbName</a></td></tr>
<tr class="memdesc:a01274e0961ae50c2a4f4498882e3d7eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt; Url to the database  <a href="#a01274e0961ae50c2a4f4498882e3d7eb"></a><br/></td></tr>
<tr class="separator:a01274e0961ae50c2a4f4498882e3d7eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adcb721f63e93506c637a09aac3ac6df6"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#adcb721f63e93506c637a09aac3ac6df6">driver</a></td></tr>
<tr class="memdesc:adcb721f63e93506c637a09aac3ac6df6"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt; Name of the database  <a href="#adcb721f63e93506c637a09aac3ac6df6"></a><br/></td></tr>
<tr class="separator:adcb721f63e93506c637a09aac3ac6df6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9866bb45cacbe65df40aa02f9cfe8329"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#a9866bb45cacbe65df40aa02f9cfe8329">username</a></td></tr>
<tr class="memdesc:a9866bb45cacbe65df40aa02f9cfe8329"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt; Java jdbc driver  <a href="#a9866bb45cacbe65df40aa02f9cfe8329"></a><br/></td></tr>
<tr class="separator:a9866bb45cacbe65df40aa02f9cfe8329"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add82e06e9083c528e3f1046f3cdfd942"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00012.html#add82e06e9083c528e3f1046f3cdfd942">password</a></td></tr>
<tr class="memdesc:add82e06e9083c528e3f1046f3cdfd942"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt; Username wich is used on the database  <a href="#add82e06e9083c528e3f1046f3cdfd942"></a><br/></td></tr>
<tr class="separator:add82e06e9083c528e3f1046f3cdfd942"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>SQL Class used to connect to the database and to execute queries. </p>
<p>This class is an singleton wich contains a connection to the database. The properties of the connection are in the config.properties.</p>
<dl class="section author"><dt>Author</dt><dd>Erik &amp; Martijn </dd></dl>

<p>Definition at line <a class="el" href="a00017_source.html#l00017">17</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a794ac61e7345eb264f667b269be0faf0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">saxion.sensorframework.db.conn.SqlConnect.SqlConnect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>  throws SQLException, InstantiationException, 			IllegalAccessException, ClassNotFoundException </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>&lt; Password wich is used on the database </p>
<p>Constructor</p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">SQLException</td><td></td></tr>
    <tr><td class="paramname">InstantiationException</td><td></td></tr>
    <tr><td class="paramname">IllegalAccessException</td><td></td></tr>
    <tr><td class="paramname">ClassNotFoundException</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="a00017_source.html#l00054">54</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00012_a794ac61e7345eb264f667b269be0faf0_cgraph.png" border="0" usemap="#a00012_a794ac61e7345eb264f667b269be0faf0_cgraph" alt=""/></div>
<map name="a00012_a794ac61e7345eb264f667b269be0faf0_cgraph" id="a00012_a794ac61e7345eb264f667b269be0faf0_cgraph">
<area shape="rect" href="a00012.html#aee72809b506fbf549bf30c8093b2731d" title="Reads the config.properties wich contains the information for the database." alt="" coords="276,5,495,48"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00012_a794ac61e7345eb264f667b269be0faf0_icgraph.png" border="0" usemap="#a00012_a794ac61e7345eb264f667b269be0faf0_icgraph" alt=""/></div>
<map name="a00012_a794ac61e7345eb264f667b269be0faf0_icgraph" id="a00012_a794ac61e7345eb264f667b269be0faf0_icgraph">
<area shape="rect" href="a00012.html#a8a736343d2dd35ec71ea1832b8e76b81" title="Returns a SqlConnect used the get the singleton." alt="" coords="276,5,495,48"/></map>
</div>
</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a8a736343d2dd35ec71ea1832b8e76b81"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static synchronized <a class="el" href="a00012.html">SqlConnect</a> saxion.sensorframework.db.conn.SqlConnect.getDbCon </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>  throws InstantiationException, IllegalAccessException, 			ClassNotFoundException, SQLException </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a <a class="el" href="a00012.html" title="SQL Class used to connect to the database and to execute queries.">SqlConnect</a> used the get the singleton. </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="a00012.html" title="SQL Class used to connect to the database and to execute queries.">SqlConnect</a> singleton </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">InstantiationException</td><td></td></tr>
    <tr><td class="paramname">IllegalAccessException</td><td></td></tr>
    <tr><td class="paramname">ClassNotFoundException</td><td></td></tr>
    <tr><td class="paramname">SQLException</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="a00017_source.html#l00094">94</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00012_a8a736343d2dd35ec71ea1832b8e76b81_cgraph.png" border="0" usemap="#a00012_a8a736343d2dd35ec71ea1832b8e76b81_cgraph" alt=""/></div>
<map name="a00012_a8a736343d2dd35ec71ea1832b8e76b81_cgraph" id="a00012_a8a736343d2dd35ec71ea1832b8e76b81_cgraph">
<area shape="rect" href="a00012.html#a794ac61e7345eb264f667b269be0faf0" title="&lt; Password wich is used on the database" alt="" coords="276,5,495,48"/><area shape="rect" href="a00012.html#aee72809b506fbf549bf30c8093b2731d" title="Reads the config.properties wich contains the information for the database." alt="" coords="545,5,764,48"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a616ea38aefd850d4a7c7f2d75fa81fc4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ResultSet saxion.sensorframework.db.conn.SqlConnect.insert </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>insertQuery</em></td><td>)</td>
          <td>  throws SQLException </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Used to insert data into the database. </p>
<dl class="section return"><dt>Returns</dt><dd>Resultset Generated keys </dd></dl>

<p>Definition at line <a class="el" href="a00017_source.html#l00123">123</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

</div>
</div>
<a class="anchor" id="a85df8794cccd55e7fff6149cccafe091"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ResultSet saxion.sensorframework.db.conn.SqlConnect.query </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>query</em></td><td>)</td>
          <td>  throws SQLException </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Execute a query wich will be executed in the database. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">query</td><td>To be executed </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ResultSet with the results of the query </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">SQLException</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="a00017_source.html#l00112">112</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

</div>
</div>
<a class="anchor" id="aee72809b506fbf549bf30c8093b2731d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void saxion.sensorframework.db.conn.SqlConnect.readConfigFile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reads the config.properties wich contains the information for the database. </p>

<p>Definition at line <a class="el" href="a00017_source.html#l00069">69</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00012_aee72809b506fbf549bf30c8093b2731d_icgraph.png" border="0" usemap="#a00012_aee72809b506fbf549bf30c8093b2731d_icgraph" alt=""/></div>
<map name="a00012_aee72809b506fbf549bf30c8093b2731d_icgraph" id="a00012_aee72809b506fbf549bf30c8093b2731d_icgraph">
<area shape="rect" href="a00012.html#a794ac61e7345eb264f667b269be0faf0" title="&lt; Password wich is used on the database" alt="" coords="276,5,495,48"/><area shape="rect" href="a00012.html#a8a736343d2dd35ec71ea1832b8e76b81" title="Returns a SqlConnect used the get the singleton." alt="" coords="545,5,764,48"/></map>
</div>
</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="af438e4318b3b86a14500f1a235da6116"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final String saxion.sensorframework.db.conn.SqlConnect.CONFIG_FILE = &quot;config.properties&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">package</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>&lt; log4j used for logging. </p>
<p><a href="http://logging.apache.org/log4j/1.2/">log4j website</a> </p>

<p>Definition at line <a class="el" href="a00017_source.html#l00024">24</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

</div>
</div>
<a class="anchor" id="a14905a855dd0404405bccfa453a27fd2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Connection saxion.sensorframework.db.conn.SqlConnect.conn</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>&lt; Location of project properties file </p>

<p>Definition at line <a class="el" href="a00017_source.html#l00027">27</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

</div>
</div>
<a class="anchor" id="ada1f04b176cbc918263439d50e55295a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00012.html">SqlConnect</a> saxion.sensorframework.db.conn.SqlConnect.db</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>&lt; Prepared statement that will be used to execute on the database </p>

<p>Definition at line <a class="el" href="a00017_source.html#l00031">31</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

</div>
</div>
<a class="anchor" id="a01274e0961ae50c2a4f4498882e3d7eb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String saxion.sensorframework.db.conn.SqlConnect.dbName</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>&lt; Url to the database </p>

<p>Definition at line <a class="el" href="a00017_source.html#l00036">36</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

</div>
</div>
<a class="anchor" id="adcb721f63e93506c637a09aac3ac6df6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String saxion.sensorframework.db.conn.SqlConnect.driver</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>&lt; Name of the database </p>

<p>Definition at line <a class="el" href="a00017_source.html#l00038">38</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

</div>
</div>
<a class="anchor" id="a1b54b28524696aa33252c2d3981c3815"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Logger saxion.sensorframework.db.conn.SqlConnect.logger = Logger.getLogger(SqlConnect.class.getName())</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">package</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="a00017_source.html#l00018">18</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

</div>
</div>
<a class="anchor" id="add82e06e9083c528e3f1046f3cdfd942"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String saxion.sensorframework.db.conn.SqlConnect.password</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>&lt; Username wich is used on the database </p>

<p>Definition at line <a class="el" href="a00017_source.html#l00042">42</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

</div>
</div>
<a class="anchor" id="a22891c0396ec494ad8184bfa66dc0c5a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">PreparedStatement saxion.sensorframework.db.conn.SqlConnect.statement</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>&lt; The connection to the database </p>

<p>Definition at line <a class="el" href="a00017_source.html#l00029">29</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

</div>
</div>
<a class="anchor" id="a45f4ebd14354ea2e599f17cfd307046f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String saxion.sensorframework.db.conn.SqlConnect.url</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>&lt; An instance of the class <a class="el" href="a00012.html" title="SQL Class used to connect to the database and to execute queries.">SqlConnect</a> </p>

<p>Definition at line <a class="el" href="a00017_source.html#l00034">34</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

</div>
</div>
<a class="anchor" id="a9866bb45cacbe65df40aa02f9cfe8329"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String saxion.sensorframework.db.conn.SqlConnect.username</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>&lt; Java jdbc driver </p>

<p>Definition at line <a class="el" href="a00017_source.html#l00040">40</a> of file <a class="el" href="a00017_source.html">SqlConnect.java</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/saxion/sensorframework/db/conn/<a class="el" href="a00017_source.html">SqlConnect.java</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Feb 1 2013 11:25:01 for SensorFramework by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.2-20121118
</small></address>
</body>
</html>
